function [ money ] = Balance()
%BALANCE Summary of this function goes here
%   Detailed explanation goes here
global orderID
connectTWS;
tws.reqIds(orderID); %Actualiza el valor de orderID
orderID=orderID+1;
tws.reqAccountUpdates(1,'code'); %Actualiza el portfolio y el cashBalance
money=cashBalance(end);
pause(5)
tws.disconnect();
end

